#include "Stream/FileStream.h"
#include "Basic/UnitTest.h"
using namespace zl;
using namespace zl::stream;

TEST_CASE(TestFileStream)
{
	{
		FileStream file(L"../testfile/test.txt",FileStream::AccessRight::ReadOnly);
		pos_t size = file.Size();
		char buff[100] = { 0 };
		file.Read(buff, (size_t)size);
		assert(size==19);
		assert(std::string(buff) == "zhubin is a genuis;");
	}
	
}

